/*
 *   File name    : logtest.cpp
 *   Version      : 1.0.0
 *   Description  : test log tool 
 *   Author       : zxliu
 *   Created on   : 20120911
 *   Modified list: 
 */


#include <iostream>
#include "LogWrapper.h"

using namespace std ;
using namespace SERVERTOOL;

int main(void) 
{
    Log::instance("./TEST", "SAVE", "TEST", "DEP099", "PRJ099");

    //set the parameter for your application
    LOG_SET_SYSID("SYSID");
    LOG_SET_PID("PID");
    LOG_SET_CWA("CWA");
    LOG_SET_TRANSERIALNO("S00000");
//    LOG_SET_TRACEFLAG((int)1);//this test does use the log management module or service 
    LOG_SET_DEBUGFLAG((int)1);
    LOG_ERR(1,"echo ---------------------------");//FATAL & ERROR default to print
    LOG_DEBUG("echo ---------------------------");

    LOG_CLEAR_USERVALUE();
    Log::destroy();
    cout<<"test done."<<endl;
    return 1;

}
